package com.tcxhb.job.common.constants.enums;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/7
 */
public enum ExecuteStatus {
    INIT(10, "初始化"),
    // 调度成功是指已经提交到机器
    WAIT_CPU(11, "等待CPU"),
    RUNNING(12, "运行中"),
    //远程机器给的callback
    SUCC(18, "运行成功"),
    FAIL(20, "运行失败"),
    ;

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }


    private Integer type;
    private String name;

    public boolean eq(Integer type) {
        return this.type.equals(type);
    }

    ExecuteStatus(Integer type, String name) {
        this.type = type;
        this.name = name;
    }
}
